Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support svg elements #60

Merged
merged 2 commits into from
Apr 21, 2022
Merged

feat: support svg elements #60

merged 2 commits into from
Apr 21, 2022

Conversation

cryzzchen
Copy link

@cryzzchen cryzzchen commented Apr 21, 2022

https://svgwg.org/svg2-draft/struct.html#InterfaceSVGSVGElement
Svg elements properties are read only, must be set as attributes

@cryzzchen cryzzchen merged commit 9e2bc7d into main Apr 21, 2022
@delete-merged-branch delete-merged-branch bot deleted the feat/svg branch April 21, 2022 09:02
SoloJiang added a commit that referenced this pull request Apr 26, 2022
* feat: support svg elements (#60)

* feat: support svg elements

* chore: fix lint and add notes

* feat(compiler): update structure in get template method

* fix(compiler): lint error

* feat(compiler): use handler to distinguish events and on props

* chore(compiler): add EventAttributeDescriptor interface

Co-authored-by: Rongyan Chen <[email protected]>
Co-authored-by: 狒狒神 <[email protected]>
SoloJiang added a commit that referenced this pull request May 11, 2022
* refactor: runtime structure

* chore: lint

* feat: support element template diff

* chore: lint

* feat(compiler): update structure in get template method (#62)

* feat: support svg elements (#60)

* feat: support svg elements

* chore: fix lint and add notes

* feat(compiler): update structure in get template method

* fix(compiler): lint error

* feat(compiler): use handler to distinguish events and on props

* chore(compiler): add EventAttributeDescriptor interface

Co-authored-by: Rongyan Chen <[email protected]>
Co-authored-by: 狒狒神 <[email protected]>

* feat: html method support new structure

* feat: html method support new structure

* fix(compiler): inject wrong value in runtime compiler

* refactor: reactive node

* chore: test case

* fix(compiler): replace values with templateData in template result

* chore: test case

* chore: add test case

* refactor: base render

* chore: revert code

* chore: test case

* chore: lint

* chore: ts type

* chore: test case

* chore: add comment

* chore: remove useless comment

* chore: add test case

* chore: optimize code

* chore: optimize code

* chore: link

* chore: optimize code

Co-authored-by: NK <[email protected]>
Co-authored-by: Rongyan Chen <[email protected]>
Co-authored-by: 逆葵 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants